﻿using Husb.DataUtil;
using System.Data;
namespace CentralOffice.MyTable.Data {
    
    partial class SmsDataSet
    {
        partial class View_SmsDataTable
        {
        }
    
        partial class SmsDataTable
        {
        }
        public partial class View_SmsRow
        {
            public string FilterExpression
            {
                get
                {
                    string where = "";

                    //where += DataAccessUtil.GetPartWhereCondition("Id", this.Id);
                    where += DataAccessUtil.GetPartWhereCondition("SmsType", this,true);
                    where += DataAccessUtil.GetPartWhereCondition("Content", this);
                    where += DataAccessUtil.GetPartWhereCondition("SendTime", "EndTime", this);
                    where += DataAccessUtil.GetPartWhereCondition("FromName", this);
                    where += DataAccessUtil.GetPartWhereCondition("ToName", this);
                    where += DataAccessUtil.GetPartWhereCondition("DeleteFlag", this);
                    where += DataAccessUtil.GetPartWhereCondition("FromId", "FromIdList", this, DbType.String, Husb.Util.ExpressionKind.Contains);
                    where += DataAccessUtil.GetPartWhereCondition("ToId", "ToIdList", this, DbType.String, Husb.Util.ExpressionKind.Contains);
                    return where;
                }
            }
        }
    }
}
